import request from '@/utils/request'

let CarApi = {
    /*车辆列表*/
    carlist(data, errorback) {
        return request._post('/shop/car.car/index', data, errorback);
    },
    deletecar(data, errorback) {
        return request._post('/shop/car.car/delete', data, errorback);
    },
    detail(data, errorback) {
        return request._post('/shop/car.car/detail', data, errorback);
    },
    editCar(data, errorback) {
        return request._post('/shop/car.car/editCar', data, errorback);
    },
    getMonth(data, errorback) {
        return request._post('/shop/order.CarOrder/get_month_order', data, errorback);
    },
    driverlist(data, errorback) {
        return request._post('/shop/driver.driver/index', data, errorback);
    },
    driverDetail(data, errorback) {
        return request._get('/shop/driver.driver/details', data, errorback);
    },
    driverEdit(data, errorback) {
        return request._post('/shop/driver.driver/editpost', data, errorback);
    },
    
    deleteDriver(data, errorback) {
        return request._post('/shop/driver.driver/delete', data, errorback);
    },
}

export default CarApi;
